package com.lwz.laboratory.service;

import com.lwz.laboratory.dao.WorkcontentMapper;
import com.lwz.laboratory.entity.Workcontent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletResponse;
import java.sql.Timestamp;
import java.util.List;

@Service
public class WorkcontentService {
    @Autowired
    WorkcontentMapper workcontentMapper;

    public void addworkcontent(Workcontent workcontent){
        workcontent.setSystime(new Timestamp(System.currentTimeMillis()));
        workcontentMapper.insert(workcontent);

    }
    public List<Workcontent >findbyworktime(String worktime){
        return workcontentMapper.getworkList(worktime);

    }

    public List<Workcontent >findbyassid(String assistantid){
        return workcontentMapper.selectByperson(assistantid);
    }


}
